﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

public partial class _35newpart_Linq_DLINQ_LINQ_to_SQL_之调用存储过程的添加_查询_更新和删除 : System.Web.UI.Page
{
    Linq查询DataContext Ldb = new Linq查询DataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
#if old
                DataGrid MyDG = new DataGrid() { DataSource = Ldb.SelectX(), DataKeyField= "bookid" };
        MyDG.DataBind();

                System.IO.StringWriter Sw = new System.IO.StringWriter();
        Html32TextWriter HT = new Html32TextWriter(Sw);
        MyDG.RenderControl(HT);
        Response.Write(Sw.ToString());
#endif





    }






}


